package com.edie.customview.modular;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;

import com.edie.customview.R;

/**
 * - @Description:  面部识别
 * - @Author:  edie
 * - @Time:  2018/7/12 上午11:20
 */
public class FaceActivity extends AppCompatActivity implements View.OnClickListener {

    private TextView textView;

    public static void start(Context context) {
        context.startActivity(new Intent(context, FaceActivity.class));
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_face);
        initView();
    }

    private void initView() {
        findViewById(R.id.button).setOnClickListener(this);
        textView = (TextView) findViewById(R.id.textView);

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.button:
//                FaceDetector faceDetector = new FaceDetector(bm.getWidth(), bm.getHeight(), MAX_FACE_NUM);
//                FaceDetector.Face[] faces = new FaceDetector.Face[MAX_FACE_NUM];
//                realFaceNum = faceDetector.findFaces(bm, faces);

                break;
        }
    }
}
